/**
 * Created by game on 2016/11/13.
 */
if (!window.__CALENDAR_RESOURCE__) {
    var __CALENDAR_RESOURCE__ = {
        Titles : {
            year: {"ZH-CN":{prev:"上一年",next:"下一年"},"DEFAULT":{prev: "Previous Year", next: "Next Year"}},
            month: {"ZH-CN":{prev:"上个月",next:"下个月"},"DEFAULT":{prev: "Previous Month", next: "Next Month"}},
            cancel: {"ZH-CN":"取消", "DEFAULT":"Cancel"},
            clear: {"ZH-CN":"清除", "DEFAULT":"Clear"},
            today_title: {"ZH-CN":"今天","DEFAULT":"Today"}
        },
        WeekTitles : {
            "ZH-CN" : ["日", "一", "二", "三", "四", "五", "六"],
            "DEFAULT" : ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
        },
        Week : {"ZH-CN": "星期", "DEFAULT":"Week"},
        MonthTitles : {
            "ZH-CN":["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
            "DEFAULT": ["Jan", "Feb", "Mar", "Apr", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
        },
        locale : (window.navigator.browserLanguage || window.navigator.language).toUpperCase () || "DEFAULT",
        getMonthTitle : {
            'ZH-CN' : function (date) {
                var month = date.getMonth ();
                return date.getFullYear() + '年' + __CALENDAR_RESOURCE__.MonthTitles ['ZH-CN'][month];
            },
            'DEFAULT' : function (date) {
                var month = date.getMonth ();
                return __CALENDAR_RESOURCE__.MonthTitles ['DEFAULT'][month] + ' ' + date.getFullYear ();
            }
        }
    };
    __CALENDAR_RESOURCE__.Titles.year ['US_EN'] = __CALENDAR_RESOURCE__.Titles.year ['DEFAULT'];
    __CALENDAR_RESOURCE__.Titles.month ['US_EN'] = __CALENDAR_RESOURCE__.Titles.month ['DEFAULT'];
    __CALENDAR_RESOURCE__.Titles.cancel ['US_EN'] = __CALENDAR_RESOURCE__.Titles.cancel ['DEFAULT'];
    __CALENDAR_RESOURCE__.Titles.clear ['US_EN'] = __CALENDAR_RESOURCE__.Titles.clear ['DEFAULT'];
    __CALENDAR_RESOURCE__.Titles.today_title ['US_EN'] = __CALENDAR_RESOURCE__.Titles.today_title ['DEFAULT'];
}